package com.dao;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserDao {

    int save(Map<String,Object> param);

    String getPwdByUsername(@Param("username") String username);

    int updateLoginTime(@Param("username") String username, @Param("login_time") String login_time);

    int update(@Param("user_id") String user_id, @Param("username") String username
            , @Param("name") String name, @Param("phone") String phone
            , @Param("nickname") String nickname,@Param("pwd") String pwd);

    int del(@Param("user_id") String user_id);

    List<Map<String, Object>> list(@Param("nickname") String nickname,@Param("username") String username);

    String getUserId(@Param("username") String username);

    List<Map<String, Object>> listNickname(@Param("list") List<String> list);

    List<String> listMenuUri(@Param("user_id") String user_id);

    List<Map<String, Object>> listMenu(@Param("user_id") String user_id);

    List<Map<String, Object>> listMenuAll();

    String getUserName(@Param("user_id") String user_id);

    Map<String, Object> getByUsername(@Param("username") String username);

    String getUsername(@Param("user_id") String user_id);

    List<Map<String, Object>> listByUsername(@Param("username") String username);
}
